package com.geekaca.oopd3.stringapi;

public class TestMain {
    public static void main(String[] args) {
        StringBuilder stringBuilder =new StringBuilder();
        stringBuilder.append("hello");
        stringBuilder.append(" java");
        stringBuilder.append(" geekaca");
        stringBuilder.append(3);
        stringBuilder.append(3.14);
        stringBuilder.append('中');

        System.out.println(stringBuilder.toString());
        System.out.println("stringBuilder = " + stringBuilder);
        System.out.println("stringBuilder.toString() = " + stringBuilder.toString());

        StringBuilder sb2 = new StringBuilder();
        sb2.append("你好");
        System.out.println("sb2.reverse() = " + sb2.reverse());
        System.out.println(sb2.length());

    }
}
